package com.study.demo.valid;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author liuhongzhen
 * @date 2022/4/26 13:04
 */
@Data
public class DoubleToIntDto {

//    @DoubleToInt(ratio = 100,description = "1234567890")
//    private Double price;

    private BigDecimal price;

    @JsonProperty
    private Integer amount;

}
